home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 1998 November / IRIX 6.5.2 Base Documentation November 1998.img / usr / share / catman / p_man / cat3 / Xm / XmTextSetSource.z / XmTextSetSource
Text File  |  1998-10-30  |  4KB  |  133 lines

  1.  
  2.  
  3.  
  4.      XXXXmmmmTTTTeeeexxxxttttSSSSeeeettttSSSSoooouuuurrrrcccceeee((((3333XXXX))))       UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV       XXXXmmmmTTTTeeeexxxxttttSSSSeeeettttSSSSoooouuuurrrrcccceeee((((3333XXXX))))
  5.  
  6.  
  7.  
  8.      NNNNAAAAMMMMEEEE
  9.           XXXXmmmmTTTTeeeexxxxttttSSSSeeeettttSSSSoooouuuurrrrcccceeee - A Text function that sets the source of
  10.           the widget
  11.  
  12.      SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  13.           #include <Xm/Text.h>
  14.           vvvvooooiiiidddd XXXXmmmmTTTTeeeexxxxttttSSSSeeeettttSSSSoooouuuurrrrcccceeee(
  15.           WWWWiiiiddddggggeeeetttt wwwwiiiiddddggggeeeetttt,
  16.           XXXXmmmmTTTTeeeexxxxttttSSSSoooouuuurrrrcccceeee ssssoooouuuurrrrcccceeee,
  17.           XXXXmmmmTTTTeeeexxxxttttPPPPoooossssiiiittttiiiioooonnnn ttttoooopppp____cccchhhhaaaarrrraaaacccctttteeeerrrr,
  18.           XXXXmmmmTTTTeeeexxxxttttPPPPoooossssiiiittttiiiioooonnnn ccccuuuurrrrssssoooorrrr____ppppoooossssiiiittttiiiioooonnnn);
  19.  
  20.      VVVVEEEERRRRSSSSIIIIOOOONNNN
  21.           This page documents Motif 2.1.
  22.  
  23.      DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  24.           XXXXmmmmTTTTeeeexxxxttttSSSSeeeettttSSSSoooouuuurrrrcccceeee sets the source of the Text widget. Text
  25.           widgets can share sources of text so that editing in one
  26.           widget is reflected in another. This function sets the
  27.           source of one widget so that it can share the source of
  28.           another widget.
  29.  
  30.           Setting a new text source destroys the old text source if no
  31.           other Text widgets are using that source.  To replace a text
  32.           source but keep it for later use, create an unmanaged Text
  33.           widget and set its source to the text source you want to
  34.           keep.
  35.  
  36.           _w_i_d_g_e_t    Specifies the Text widget ID.
  37.  
  38.           _s_o_u_r_c_e    Specifies the source with which the widget
  39.                     displays text. This can be a value returned by the
  40.                     XXXXmmmmTTTTeeeexxxxttttGGGGeeeettttSSSSoooouuuurrrrcccceeee(3) function. If no source is
  41.                     specified, the widget creates a default string
  42.                     source.
  43.  
  44.           _t_o_p__c_h_a_r_a_c_t_e_r
  45.                     Specifies the position in the text to display at
  46.                     the top of the widget.  This is an integer number
  47.                     of characters from the beginning of the text
  48.                     buffer. The first character position is 0 (zero).
  49.  
  50.           _c_u_r_s_o_r__p_o_s_i_t_i_o_n
  51.                     Specifies the position in the text at which the
  52.                     insert cursor is located. This is an integer
  53.                     number of characters from the beginning of the
  54.                     text buffer. The first character position is 0
  55.                     (zero).
  56.  
  57.           For a complete definition of Text and its associated
  58.           resources, see XXXXmmmmTTTTeeeexxxxtttt(3).
  59.  
  60.  
  61.  
  62.  
  63.      Page 1                                         (printed 10/24/98)
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.      XXXXmmmmTTTTeeeexxxxttttSSSSeeeettttSSSSoooouuuurrrrcccceeee((((3333XXXX))))       UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV       XXXXmmmmTTTTeeeexxxxttttSSSSeeeettttSSSSoooouuuurrrrcccceeee((((3333XXXX))))
  71.  
  72.  
  73.  
  74.      RRRREEEELLLLAAAATTTTEEEEDDDD
  75.           XXXXmmmmTTTTeeeexxxxtttt(3).
  76.  
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.      Page 2                                         (printed 10/24/98)
  130.  
  131.  
  132.  
  133.